package cn.shengchao.examstar.comment.acl.adapters.clients;

import cn.shengchao.examstar.comment.acl.ports.clients.IAiClient;
import cn.shengchao.examstar.shared.application.ai.dto.CommentsFilterAndRateResult;
import cn.shengchao.examstar.shared.domain.ai.service.AiUtilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class AiClient implements IAiClient {

    @Autowired
    private AiUtilService aiUtil;

    @Override
    public CommentsFilterAndRateResult filterAndRate(String comments) {
        return aiUtil.filterAndRateComment(comments);
    }
}
